//
// DeviceFile.h
// Usage: VFS device file object
// CreateDate: 2009-05-20
// Author: MaJiuyue
//
#ifndef _DEVICEFILE_H_
#define _DEVICEFILE_H_

#include "File.h"

class DeviceFile : public File
{
public:
	DeviceFile(const char *name, u32 inode, size_t length, FileSystem *fs);

	virtual void open();
	virtual void close();
	virtual int read(int off, size_t size, addr_t buf);
	virtual int write(int off, size_t size, addr_t buf);
};

#endif

